package com.lanhe.game.terraceEarn.domain;

import com.lanhe.common.annotation.Excel;
import com.lanhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;


/**
 * 媒体平台单对象 lanhe_terrace_earn
 * 
 * @author tianliang
 * @date 2024-03-06
 */
public class LanheTerraceEarn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 广告平台id */
    @Excel(name = "广告平台id")
    private Long terraceId;

    /** 媒体id */
    @Excel(name = "媒体id")
    private String mediaId;

    /** 广告位id */
    @Excel(name = "广告位id")
    private String postId;

    /** 包名 */
    @Excel(name = "包名")
    private String packageName;

    /** 广告平台(1,优量汇;2,快手联盟;3,穿山甲) */
    @Excel(name = "广告平台(1,优量汇;2,快手联盟;3,穿山甲)")
    private String terraceType;

    /** 广告类型（1,激励视频;2,开屏广告;3,插屏广告;4,信息流广告) */
    @Excel(name = "广告类型", readConverterExp = "广告类型（1,激励视频;2,开屏广告;3,插屏广告;4,信息流广告)")
    private String adType;

    /** 看广用户id */
    @Excel(name = "看广用户id")
    private Long appUserId;

    /** 每条收益数据 */
    @Excel(name = "每条收益数据")
    private BigDecimal earnings;

    public void setTerraceId(Long terraceId) 
    {
        this.terraceId = terraceId;
    }

    public Long getTerraceId() 
    {
        return terraceId;
    }
    public void setMediaId(String mediaId) 
    {
        this.mediaId = mediaId;
    }

    public String getMediaId() 
    {
        return mediaId;
    }
    public void setPostId(String postId) 
    {
        this.postId = postId;
    }

    public String getPostId() 
    {
        return postId;
    }
    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }
    public void setTerraceType(String terraceType) 
    {
        this.terraceType = terraceType;
    }

    public String getTerraceType() 
    {
        return terraceType;
    }
    public void setAdType(String adType) 
    {
        this.adType = adType;
    }

    public String getAdType() 
    {
        return adType;
    }
    public void setAppUserId(Long appUserId)
    {
            this.appUserId = appUserId;
    }

    public Long getAppUserId()
    {
        return appUserId;
    }
    public void setEarnings(BigDecimal earnings) 
    {
        this.earnings = earnings;
    }

    public BigDecimal getEarnings() 
    {
        return earnings;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("terraceId", getTerraceId())
            .append("mediaId", getMediaId())
            .append("postId", getPostId())
            .append("packageName", getPackageName())
            .append("terraceType", getTerraceType())
            .append("adType", getAdType())
            .append("appUserId", getAppUserId())
            .append("earnings", getEarnings())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
